package com.seari.ats.handler;

import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;

/**
 * @author TOUC  编码器
 *
 */
public class AtsEncoder extends MessageToByteEncoder<Object> {

	@Override
	protected  void encode(ChannelHandlerContext ctx, Object msg, ByteBuf out)
			throws Exception {
		
		out.writeBytes((ByteBuf) msg);
		
	}


	


	

}
